import { NoteProps } from "@dendronhq/common-all";

export const response = {
  data: {
    body: {
      content: [
        {
          endIndex: 1,
          sectionBreak: {
            sectionStyle: {
              contentDirection: "LEFT_TO_RIGHT",
              columnSeparatorStyle: "NONE",
              sectionType: "CONTINUOUS",
            },
          },
        },
        {
          endIndex: 18,
          startIndex: 1,
          paragraph: {
            elements: [
              {
                endIndex: 18,
                startIndex: 1,
                textRun: {
                  content: "Testing GDoc Pod\n",
                  textStyle: {},
                },
              },
            ],
            paragraphStyle: {
              headingId: "h.11jz0sgxh4ph",
              direction: "LEFT_TO_RIGHT",
              namedStyleType: "HEADING_1",
            },
          },
        },
        {
          endIndex: 41,
          startIndex: 18,
          paragraph: {
            elements: [
              {
                endIndex: 41,
                startIndex: 18,
                textRun: {
                  content: "This is the first line\n",
                  textStyle: {},
                },
              },
            ],
            paragraphStyle: {
              direction: "LEFT_TO_RIGHT",
              namedStyleType: "NORMAL_TEXT",
            },
          },
        },
        {
          endIndex: 43,
          startIndex: 41,
          paragraph: {
            elements: [
              {
                endIndex: 42,
                startIndex: 41,
                inlineObjectElement: {
                  textStyle: {},
                  inlineObjectId: "kix.6hcpkz8cg3cd",
                },
              },
              {
                endIndex: 43,
                startIndex: 42,
                textRun: {
                  content: "\n",
                  textStyle: {},
                },
              },
            ],
            paragraphStyle: {
              direction: "LEFT_TO_RIGHT",
              namedStyleType: "NORMAL_TEXT",
            },
          },
        },
      ],
    },
    documentStyle: {
      useCustomHeaderFooterMargins: true,
      pageSize: {
        width: {
          magnitude: 612,
          unit: "PT",
        },
        height: {
          magnitude: 792,
          unit: "PT",
        },
      },
      marginHeader: {
        magnitude: 36,
        unit: "PT",
      },
      marginBottom: {
        magnitude: 72,
        unit: "PT",
      },
      marginFooter: {
        magnitude: 36,
        unit: "PT",
      },
      marginLeft: {
        magnitude: 72,
        unit: "PT",
      },
      background: {
        color: {},
      },
      marginRight: {
        magnitude: 72,
        unit: "PT",
      },
      pageNumberStart: 1,
      marginTop: {
        magnitude: 72,
        unit: "PT",
      },
    },
    title: "test",
    revisionId:
      "ALm37BXFqAKco_HUxV4VkthgGzmqZch7_jtkmDA7MPWbV5iDt-khIo2TIBbG_ANGhaGRXhMxR0JtdmMgfPzhOQ",
    documentId: "14o1AVg10CBbLlqNqBrCz4HkRNBmrwrXpuP5F___P_cw",
    suggestionsViewMode: "SUGGESTIONS_INLINE",
    namedStyles: {
      styles: [
        {
          textStyle: {
            foregroundColor: {
              color: {
                rgbColor: {},
              },
            },
            bold: false,
            baselineOffset: "NONE",
            strikethrough: false,
            weightedFontFamily: {
              fontFamily: "Arial",
              weight: 400,
            },
            smallCaps: false,
            italic: false,
            fontSize: {
              magnitude: 11,
              unit: "PT",
            },
            backgroundColor: {},
            underline: false,
          },
          namedStyleType: "NORMAL_TEXT",
          paragraphStyle: {
            spacingMode: "COLLAPSE_LISTS",
            direction: "LEFT_TO_RIGHT",
            spaceBelow: {
              unit: "PT",
            },
            keepWithNext: false,
            lineSpacing: 115,
            avoidWidowAndOrphan: true,
            borderBottom: {
              color: {},
              width: {
                unit: "PT",
              },
              dashStyle: "SOLID",
              padding: {
                unit: "PT",
              },
            },
            indentStart: {
              unit: "PT",
            },
            borderBetween: {
              color: {},
              width: {
                unit: "PT",
              },
              dashStyle: "SOLID",
              padding: {
                unit: "PT",
              },
            },
            borderRight: {
              color: {},
              width: {
                unit: "PT",
              },
              dashStyle: "SOLID",
              padding: {
                unit: "PT",
              },
            },
            borderLeft: {
              color: {},
              width: {
                unit: "PT",
              },
              dashStyle: "SOLID",
              padding: {
                unit: "PT",
              },
            },
            spaceAbove: {
              unit: "PT",
            },
            indentEnd: {
              unit: "PT",
            },
            shading: {
              backgroundColor: {},
            },
            borderTop: {
              color: {},
              width: {
                unit: "PT",
              },
              dashStyle: "SOLID",
              padding: {
                unit: "PT",
              },
            },
            namedStyleType: "NORMAL_TEXT",
            indentFirstLine: {
              unit: "PT",
            },
            alignment: "START",
            keepLinesTogether: false,
          },
        },
        {
          textStyle: {
            fontSize: {
              magnitude: 20,
              unit: "PT",
            },
          },
          namedStyleType: "HEADING_1",
          paragraphStyle: {
            direction: "LEFT_TO_RIGHT",
            spaceBelow: {
              magnitude: 6,
              unit: "PT",
            },
            keepWithNext: true,
            spaceAbove: {
              magnitude: 20,
              unit: "PT",
            },
            namedStyleType: "NORMAL_TEXT",
            keepLinesTogether: true,
          },
        },
        {
          textStyle: {
            fontSize: {
              magnitude: 16,
              unit: "PT",
            },
            bold: false,
          },
          namedStyleType: "HEADING_2",
          paragraphStyle: {
            direction: "LEFT_TO_RIGHT",
            spaceBelow: {
              magnitude: 6,
              unit: "PT",
            },
            keepWithNext: true,
            spaceAbove: {
              magnitude: 18,
              unit: "PT",
            },
            namedStyleType: "NORMAL_TEXT",
            keepLinesTogether: true,
          },
        },
        {
          textStyle: {
            foregroundColor: {
              color: {
                rgbColor: {
                  blue: 0.2627451,
                  green: 0.2627451,
                  red: 0.2627451,
                },
              },
            },
            fontSize: {
              magnitude: 14,
              unit: "PT",
            },
            bold: false,
          },
          namedStyleType: "HEADING_3",
          paragraphStyle: {
            direction: "LEFT_TO_RIGHT",
            spaceBelow: {
              magnitude: 4,
              unit: "PT",
            },
            keepWithNext: true,
            spaceAbove: {
              magnitude: 16,
              unit: "PT",
            },
            namedStyleType: "NORMAL_TEXT",
            keepLinesTogether: true,
          },
        },
        {
          textStyle: {
            foregroundColor: {
              color: {
                rgbColor: {
                  blue: 0.4,
                  green: 0.4,
                  red: 0.4,
                },
              },
            },
            fontSize: {
              magnitude: 12,
              unit: "PT",
            },
          },
          namedStyleType: "HEADING_4",
          paragraphStyle: {
            direction: "LEFT_TO_RIGHT",
            spaceBelow: {
              magnitude: 4,
              unit: "PT",
            },
            keepWithNext: true,
            spaceAbove: {
              magnitude: 14,
              unit: "PT",
            },
            namedStyleType: "NORMAL_TEXT",
            keepLinesTogether: true,
          },
        },
        {
          textStyle: {
            foregroundColor: {
              color: {
                rgbColor: {
                  blue: 0.4,
                  green: 0.4,
                  red: 0.4,
                },
              },
            },
            fontSize: {
              magnitude: 11,
              unit: "PT",
            },
          },
          namedStyleType: "HEADING_5",
          paragraphStyle: {
            direction: "LEFT_TO_RIGHT",
            spaceBelow: {
              magnitude: 4,
              unit: "PT",
            },
            keepWithNext: true,
            spaceAbove: {
              magnitude: 12,
              unit: "PT",
            },
            namedStyleType: "NORMAL_TEXT",
            keepLinesTogether: true,
          },
        },
        {
          textStyle: {
            foregroundColor: {
              color: {
                rgbColor: {
                  blue: 0.4,
                  green: 0.4,
                  red: 0.4,
                },
              },
            },
            fontSize: {
              magnitude: 11,
              unit: "PT",
            },
            italic: true,
          },
          namedStyleType: "HEADING_6",
          paragraphStyle: {
            direction: "LEFT_TO_RIGHT",
            spaceBelow: {
              magnitude: 4,
              unit: "PT",
            },
            keepWithNext: true,
            spaceAbove: {
              magnitude: 12,
              unit: "PT",
            },
            namedStyleType: "NORMAL_TEXT",
            keepLinesTogether: true,
          },
        },
        {
          textStyle: {
            fontSize: {
              magnitude: 26,
              unit: "PT",
            },
          },
          namedStyleType: "TITLE",
          paragraphStyle: {
            direction: "LEFT_TO_RIGHT",
            spaceBelow: {
              magnitude: 3,
              unit: "PT",
            },
            keepWithNext: true,
            spaceAbove: {
              unit: "PT",
            },
            namedStyleType: "NORMAL_TEXT",
            keepLinesTogether: true,
          },
        },
        {
          textStyle: {
            foregroundColor: {
              color: {
                rgbColor: {
                  blue: 0.4,
                  green: 0.4,
                  red: 0.4,
                },
              },
            },
            fontSize: {
              magnitude: 15,
              unit: "PT",
            },
            weightedFontFamily: {
              fontFamily: "Arial",
              weight: 400,
            },
            italic: false,
          },
          namedStyleType: "SUBTITLE",
          paragraphStyle: {
            direction: "LEFT_TO_RIGHT",
            spaceBelow: {
              magnitude: 16,
              unit: "PT",
            },
            keepWithNext: true,
            spaceAbove: {
              unit: "PT",
            },
            namedStyleType: "NORMAL_TEXT",
            keepLinesTogether: true,
          },
        },
      ],
    },
    inlineObjects: {
      "kix.6hcpkz8cg3cd": {
        inlineObjectProperties: {
          embeddedObject: {
            imageProperties: {
              contentUri:
                "https://lh6.googleusercontent.com/qGm-dJvhcPDdY1pIN5O8D2J3vrqHStdd8fcCSmzWwy8nwKPY_-gD2c_fp36Z9VMcKf3eNDaL0ySX5VYDP-RjHUzJt1N-cAinXHCOlRsXkjaenTaQ7oPxGiAlSVoCAvDrUQLSbc8i98jEfDyzeg=s0",
              sourceUri:
                "https://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/Github-desktop-logo-symbol.svg/1024px-Github-desktop-logo-symbol.svg.png",
              cropProperties: {},
            },
            marginBottom: {
              magnitude: 9,
              unit: "PT",
            },
          },
        },
        objectId: "kix.6hcpkz8cg3cd",
      },
    },
  },
};

export const comments = {
  data: {
    items: [
      {
        status: "open",
        kind: "drive#comment",
        author: {
          picture: {
            url: "//lh3.googleusercontent.com/a-/AOh14GjuAapwuLS18cloy_3ohiBaDFBetCREbPEMXf8g-4w=s50-c-k-no",
          },
          kind: "drive#user",
          isAuthenticatedUser: true,
          displayName: "harshita joshi",
        },
        deleted: false,
        replies: [
          {
            kind: "drive#commentReply",
            author: {
              picture: {
                url: "//lh3.googleusercontent.com/a-/AOh14GjuAapwuLS18cloy_3ohiBaDFBetCREbPEMXf8g-4w=s50-c-k-no",
              },
              kind: "drive#user",
              isAuthenticatedUser: true,
              displayName: "harshita joshi",
            },
            deleted: false,
            htmlContent: "@abc This is a reply",
            content: "@abc This is a reply",
            replyId: "AAAANTbvk_0",
            modifiedDate: "2021-07-15T11:15:21.812Z",
            createdDate: "2021-07-15T11:15:21.812Z",
          },
        ],
        htmlContent: "first",
        content: "first",
        modifiedDate: "2021-07-15T11:15:21.812Z",
        context: {
          type: "text/html",
          value: "line",
        },
        createdDate: "2021-07-15T10:05:27.302Z",
        commentId: "AAAANcWdyCY",
        anchor: "kix.swkf5zd5ov94",
        fileTitle: "test",
        fileId: "sSjeCvERPVGU1NyfV6pdZxA",
      },
    ],
    kind: "drive#commentList",
    selfLink:
      "https://www.googleapis.com/drive/v2/files/14o1AVg10CBbLlqNqBrCz4HkRNBmrwrXpuP5F___P_cw/comments",
  },
};

export const existingNote: NoteProps = {
  id: "nCobWD86N10jWq6r",
  title: "Test",
  vault: { fsPath: "vault1" },
  type: "note",
  desc: "",
  links: [],
  anchors: {},
  fname: "gdoc.meet",
  updated: 1627283357535,
  created: 1627283357535,
  parent: null,
  children: [],
  body: "\n\n## Testing GDoc Pod\n\nThis is the first line\n\n\n",
  data: {},
  contentHash: undefined,
  custom: {
    documentId: "14o1AVg10CBbLlqNqBrCz4HkRNBmrwrXpuP5F___P_cw",
    revisionId:
      "ALm37BXFqAKco_HUxV4VkthgGzmqZch7_jtkmDA7MPWbV5iDt-khIo2TIBbG_ANGhaGRXhMxR0JtdmMgfPzhOQ",
  },
};
